﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class MoralityPersonCatch
	{
		public MoralityPersonCatch()
		{
			m_RID = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region RecordID
		
		private int? m_RecordID;
		
		public int? RecordID
		{
			get { return m_RecordID; }
			set { m_RecordID = value; }
		}
		
		#endregion
		
		#region StudentID
		
		private int? m_StudentID;
		
		public int? StudentID
		{
			get { return m_StudentID; }
			set { m_StudentID = value; }
		}
		
		#endregion
		
		#region Score

        private double? m_Score;

        public double? Score
		{
			get { return m_Score; }
			set { m_Score = value; }
		}
		
		#endregion
		
		#region Dirty
		
		private short? m_Dirty;
		
		public short? Dirty
		{
			get { return m_Dirty; }
			set { m_Dirty = value; }
		}
		
		#endregion
		

		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			MoralityPersonCatch castObj = (MoralityPersonCatch) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 59;
			hash = hash * 59
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}